<table id="group_table" ref="SrvGroup" class="table" width="100%" border="0" cellspacing="1" cellpadding="0">
		<thead class="state-header">
		  <tr>
		  
		  	  <td  width="40" tdid="0" align="center">
			 	选择
			  </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"sgId")||fields=="*"||(!fields && true)}}' tdid="1" ref="sgId"   title="编号">编号
			 </td>
			 <td width="{{fields=='*'?'200':''}}" lz:if='{{lz.idin(fields,"sgName")||fields=="*"||(!fields && true)}}' tdid="2" ref="sgName" flagKey='true'  title="组名称">组名称
			 </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"sgParent")||fields=="*"||(!fields && false)}}' tdid="3" ref="sgParent"   title="上级组">上级组
			 </td>
			 <td width="{{fields=='*'?'200':''}}" lz:if='{{lz.idin(fields,"sgFamily")||fields=="*"||(!fields && false)}}' tdid="4" ref="sgFamily"   title="族序列">族序列
			 </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"sgUser")||fields=="*"||(!fields && true)}}' tdid="5" ref="sgUser"   title="负责人">负责人
			 </td>
			 <td width="{{fields=='*'?'200':''}}" lz:if='{{lz.idin(fields,"sgFlag")||fields=="*"||(!fields && true)}}' tdid="6" ref="sgFlag"   title="组标识">组标识
			 </td>
			 <td width="{{fields=='*'?'120':''}}" lz:if='{{lz.idin(fields,"sgStatus")||fields=="*"||(!fields && true)}}' tdid="7" ref="sgStatus"   title="状态">状态
			 </td>
		 	<td lz:if="{{canAdd}}" width="50">&nbsp;</td>
			<td  width="135"  class="operation" tdid="8" ref="operation">
				&nbsp;
			</td>
		  </tr>
		 </thead>	
		 <tbody>
		 
		  <tr lz:for="{{list}}" id="{{item.sgId}}"  tree="{{item.sgParent}}">
		  	<td class="td-checkbox" align="center">
				<input class="check" name="check" type="checkbox" value="{{item.sgId}}"/>
			</td>
			 
				<td lz:if='{{lz.idin(fields,"sgId")||fields=="*"||(!fields && true)}}' ref="sgId" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.sgId$ || item.sgId}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"sgName")||fields=="*"||(!fields && true)}}' ref="sgName" class="inc {{index%2==0?'odd':'even'}} td  node">
					 	<a href="?desp={{desp+1}}&sgParent={{item.sgId}}" class="icon tree-more treenode" style="margin-left:{{(desp+0)*32}}px;display:inline-block;vertical-align:middle;width:16px;height:16px;"></a>
					 
					 
					 	{{item.sgName$ || item.sgName}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"sgParent")||fields=="*"||(!fields && false)}}' ref="sgParent" class="inc {{index%2==0?'odd':'even'}} td " relate="{{item.sgParent}}">
					 
					 
					 	<a onclick="window.href('{{basePath}}admin/permissions/group.edit.html?key={{item.sgParent}}')" href="javascript:void(0);">
					 	{{item.sgParent$ || item.sgParent}}</a>
				</td>
			 
				<td lz:if='{{lz.idin(fields,"sgFamily")||fields=="*"||(!fields && false)}}' ref="sgFamily" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.sgFamily$ || item.sgFamily}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"sgUser")||fields=="*"||(!fields && true)}}' ref="sgUser" class="inc {{index%2==0?'odd':'even'}} td " relate="{{item.sgUser}}">
					 
					 
					 	<a onclick="window.href('{{basePath}}admin/permissions/user.edit.html?key={{item.sgUser}}')" href="javascript:void(0);">
					 	{{item.sgUser$ || item.sgUser}}</a>
				</td>
			 
				<td lz:if='{{lz.idin(fields,"sgFlag")||fields=="*"||(!fields && true)}}' ref="sgFlag" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.sgFlag$ || item.sgFlag}}
				</td>
			 
				<td lz:if='{{lz.idin(fields,"sgStatus")||fields=="*"||(!fields && true)}}' ref="sgStatus" class="inc {{index%2==0?'odd':'even'}} td ">
					 
					 
					 	{{item.sgStatus$ || item.sgStatus}}
				</td>
		 	<td lz:if="{{canAdd}}" width="50">
				<a onclick='navigate("/admin/permissions/group.edit.html",{edittype:"insert",parenter:"{{item.id}}"},window)' href="javascript:void(0);">添加</a>
			</td>
			<td class="operation {{index%2==0?'odd':'even'}}">
				<a lz:if="{{canEdit}}" onclick='navigate("/admin/permissions/group.edit.html",{edittype:"update",id:"{{item.id}}"},window)' href="javascript:void(0)">修改</a>
				<a lz:if="{{canDel}}" onclick="deleteGroup('{{item.sgId}}','{{item.sgName}}')" href="javascript:void(0);">删除</a>
				<a lz:if="{{canView}}" class="inc-h" onclick='navigate("/admin/permissions/group.edit.html",{edittype:"detail",id:"{{item.id}}"},window)' href="javascript:void(0);">详情</a>
			</td>
		  </tr>
		 
		 </tbody>
		 		 
	  </table>